package com.tinyideatech.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tinyideatech.system.entity.CarQrcode;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @author zhangy-5
 * @date 2019-09-09
 */
@Repository
public interface CarQrcodeMapper extends BaseMapper<CarQrcode> {

    @Select("SELECT * FROM car_qrcode WHERE device_id=#{deviceId}")
    CarQrcode selectAllByDeviceName(String deviceId);

}